package service;

import java.util.Scanner;

public class ReadStringAndInFromConsole {
        public static void main(String[] args) {
                Scanner in = new Scanner(System.in );
                System.out.println("请问你的名字是？");
                String str = in.nextLine();
                System.out.println(str+"，你好");
                System.out.println("请问你几岁了?");
                int age = in.nextInt();
                System.out.println("好的"+str+age+"岁了。");

        }
}